import { ModuleManager, OdinGame } from "odin";
import { CoinData } from "./modules/coin/CoinData";
import { CoinModuleC, CoinModuleS } from "./modules/coin/CoinModule";
import { GameModuleC, GameModuleS } from "./modules/game/GameModule";
import { MonsterModuleC, MonsterModuleS } from "./modules/monster/MonsterModule";
import { WeaponModuleC, WeaponModuleS } from "./modules/weapon/WeaponModule";

/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-10-22 18:20:05
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-11-09 16:47:18
 * @FilePath: \WYW_0419_Oasis\JavaScripts\GameStart.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
@MWCore.MWClass
export default class GameStart extends OdinGame
{
    @MWCore.MWProperty({displayName:"预加载"})
    private preloadAssets: string=this.preloads;

    protected get preloads()
    {
        return "4172,4173,20242,4394,12694,21615,43694,12721,13939,19911"
    }
    protected onRegisterModule():void{
        ModuleManager.instance.register(GameModuleS,GameModuleC,null);
        ModuleManager.instance.register(CoinModuleS,CoinModuleC,CoinData);
        ModuleManager.instance.register(WeaponModuleS,WeaponModuleC,null);
        ModuleManager.instance.register(MonsterModuleS,MonsterModuleC,null);
        
    }
}